USE LEGACY SHADER COMPILER

Call this command at the beginning of your code to use the legacy shader compiler used in earlier versions of DBPro.
Note that it is adviced that you fix your shaders to adhere to the stricter validation used by the new shader compiler rather than depend on this setting. See the description below for further details.

  Syntax
USE LEGACY SHADER COMPILER
  Returns

This command does not return a value.

  Description

Using the legacy shader compiler allows compiling shaders that were dependent on the certain behaviour of the earlier shader compiler withour warning popups that would otherwise be emitted by the newer compiler.
Beware that the October 2006 DirectX runtime must be installed in order to use this setting.
Also note that you cannot turn this setting off again. It is adviced that you do not call this command but rather update your shaders to adhere to the somewhat stricter rules imposed by the newer shader compiler. This mostly just boils down to making your shader code more explicit such as for example through defining a default return type for pixel shaders in cases where the control flow would have the shader issue a discard or a clip instruction, thereby not returning anything anyway.

  See also

BASIC3D Commands Menu
Index